import {
    Base
} from '../../utils/base'
const base = new Base()
class Service extends Base {
    constructor() {
        super()
    }

    /**
     * 获取全国疫情信息
     */
    getChinaData() {
        return base.getRequest('covid/china')
    }

    /**
     * 获取当地疫情信息
     * @param {array} param 
     */
    getAreaData(param) {
        return base.getRequest('covid/area', param)
    }
}

export {
    Service
}